package com.cskaoyan.bo.goods;

import com.cskaoyan.bean.goods.Goods;
import com.cskaoyan.bean.goods.GoodsAttribute;
import com.cskaoyan.bean.goods.GoodsProduct;
import com.cskaoyan.bean.goods.GoodsSpecification;
import lombok.Data;

import java.util.List;

/**
 * description:封装GoodsCreate请求参数的bean，其中包括四个表内容
 * author:houzhitao@139.com
 */
@Data
public class GoodsCreateAndUpdateBo {
    /**
     * goods : {"picUrl":"","gallery":[],"goodsSn":"1000869","name":"儿童电动车四轮遥控汽车可坐童车小孩越野车摇摆宝宝玩具车可坐人","counterPrice":"1369","retailPrice":"983","isNew":true,"isHot":false,"isOnSale":true,"unit":"件","keywords":"玩具","categoryId":1034001,"brandId":1046003,"brief":"儿童汽车玩具","detail":"<p>适合6到12岁儿童，有大人看护<\/p>"}
     * specifications : [{"specification":"普通","value":"中等","picUrl":""}]
     * products : [{"id":0,"specifications":["中等"],"price":"129","number":"1555","url":""}]
     * attributes : [{"attribute":"宽","value":"45cm"},{"attribute":"长","value":"90cm"}]
     */
    private Goods goods;
    private List<GoodsSpecification> specifications;
    private List<GoodsProduct> products;
    private List<GoodsAttribute> attributes;
}
